/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Home.java
 *
 * Created on Jun 2, 2009, 10:12:27 PM
 */

package lk.asha.desktop.manager;

import javax.swing.JComboBox;

/**
 *
 * @author user
 */
public class Home extends javax.swing.JFrame {

    /** Creates new form Home */
    public Home() {
        initComponents();
        setLocationRelativeTo(null);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jTabbedPane1 = new javax.swing.JTabbedPane();
        changePassword1 = new lk.asha.desktop.operator.ChangePassword();
        reportViewer1 = new lk.asha.desktop.manager.ReportViewer();
        salary1 = new lk.asha.desktop.manager.Salary();
        addEmploy1 = new lk.asha.desktop.manager.AddEmploy();
        addUser1 = new lk.asha.desktop.manager.AddUser();
        detailReport1 = new lk.asha.desktop.manager.DetailReport();
        addVehivle1 = new lk.asha.desktop.manager.AddVehivle();
        jLabel1 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setResizable(false);

        jTabbedPane1.setTabPlacement(javax.swing.JTabbedPane.LEFT);
        jTabbedPane1.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTabbedPane1FocusGained(evt);
            }
        });
        jTabbedPane1.addTab("ChangePassword", changePassword1);
        jTabbedPane1.addTab("Report", reportViewer1);
        jTabbedPane1.addTab("Salary", salary1);
        jTabbedPane1.addTab("Add Employ", addEmploy1);
        jTabbedPane1.addTab("Add New User", addUser1);
        jTabbedPane1.addTab("Detail Report", detailReport1);
        jTabbedPane1.addTab("Add Vehicle", addVehivle1);

        jLabel1.setFont(new java.awt.Font("Tahoma", 0, 36));
        jLabel1.setForeground(new java.awt.Color(192, 52, 240));
        jLabel1.setText(new lk.asha.desktop.style.Style().nameOfCompany());

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(98, 98, 98)
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(60, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(429, Short.MAX_VALUE)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 308, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(296, 296, 296))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(26, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jTabbedPane1FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTabbedPane1FocusGained
    addUser1.fillcomboBox(new JComboBox());        // TODO add your handling code here:
    }//GEN-LAST:event_jTabbedPane1FocusGained

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Home().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private lk.asha.desktop.manager.AddEmploy addEmploy1;
    private lk.asha.desktop.manager.AddUser addUser1;
    private lk.asha.desktop.manager.AddVehivle addVehivle1;
    private lk.asha.desktop.operator.ChangePassword changePassword1;
    private lk.asha.desktop.manager.DetailReport detailReport1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JTabbedPane jTabbedPane1;
    private lk.asha.desktop.manager.ReportViewer reportViewer1;
    private lk.asha.desktop.manager.Salary salary1;
    // End of variables declaration//GEN-END:variables

}
